package cn.sll.org.domain;

import cn.sll.base.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    @NotBlank(message = "姓名不能为空！")
    private String username;
    @NotBlank(message = "邮箱不能为空！")
    private String email;
    @NotBlank(message = "电话不能为空！")
    private String phone;
    private String salt;
    @NotBlank(message = "密码不能为空！")
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;
    private List<Long> roleId;

    //确认密码
    @NotBlank(message = "确认密码不能为空！")
    private String comfirmPassword;

}
